Class ADMRegistrar
- java.lang.Object
-
- com.amazon.A3L.messaging.ADM.registration.ADMRegistrar
-
public class ADMRegistrar extends java.lang.ObjectDevice registration class for ADM
-
-
Constructor Summary
Constructors Constructor Description ADMRegistrar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.android.gms.tasks.Task<java.lang.String>getToken(android.content.Context context)Creates a registration token if one does not exits usingADMapis.voidregisterDevice(android.content.Context context, OnInitCallback onInitCallback)Starts the registration by trying to get registration Id and sends the response in callback.
-
-
-
Method Detail
-
registerDevice
public void registerDevice(@NonNull android.content.Context context, @NonNull OnInitCallback onInitCallback)Starts the registration by trying to get registration Id and sends the response in callback.- Parameters:
context- : Application ContextonInitCallback- : optional callback provided by app to receive device registration status
-
getToken
public com.google.android.gms.tasks.Task<java.lang.String> getToken(android.content.Context context)
Creates a registration token if one does not exits usingADMapis.- Parameters:
context-- Returns:
- Task with Token
-
-